﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using Campus.Main.Basic.Settings;
using Campus.ogrenci2006_dboDataSetTableAdapters;
using Microsoft.Reporting.WinForms;

namespace Campus.Report.ReportForm
{
    public partial class ReportForm : DefaultForm
    {
        public ReportForm()
        {
            InitializeComponent();
        }

        private void ReportForm_Load(object sender, EventArgs e)
        {
            // TODO: данная строка кода позволяет загрузить данные в таблицу "ogrenci2006_dboDataSet.onkayit". При необходимости она может быть перемещена или удалена.
            //Height = SystemInformation.PrimaryMonitorSize.Height;
            //Width = SystemInformation.PrimaryMonitorSize.Width;
            WindowState = FormWindowState.Maximized;
            TopMost = true;
            //onKayitTableAdapter1.Fill(ogrenci2006_dboDataSet.OnKayit);
            reportViewer1.SetDisplayMode(DisplayMode.PrintLayout);
            reportViewer1.RefreshReport();
        }

        private void ReportForm_FormClosing(object sender, FormClosingEventArgs e)
        {
            reportViewer1.LocalReport.ReleaseSandboxAppDomain();
        }
    }
}
